faasm_private_lib(upload_lib
    UploadEndpointHandler.cpp
)
target_include_directories(upload_lib PRIVATE ${FAASM_INCLUDE_DIR}/upload)
target_link_libraries(upload_lib PUBLIC
    faasm::common_deps
    faasm::wasm_codegen
    faasm::wavmmodule
    faasm::wamrmodule
    faasm::system
)

add_executable(upload upload_server.cpp)
target_link_libraries(upload PUBLIC faasm::upload_lib)
